import 'package:flutter/material.dart';
import 'package:meiyunapp/widget/order_item_widget.dart';

class OrderListPage extends StatefulWidget {
  late int _state;

  OrderListPage({required int state, Key? key}) : super(key: key) {
    _state = state;
  }

  @override
  _OrderListPageState createState() => _OrderListPageState();
}

class _OrderListPageState extends State<OrderListPage>
    with AutomaticKeepAliveClientMixin {
  int a = 1;

  @override
  Widget build(BuildContext context) {
    super.build(context);
    return ListView.builder(
      itemCount: 10,
      itemBuilder: (context, index) {
        return const OrderItemWidget();
      },
    );
  }

  @override
  bool get wantKeepAlive => true;
}
